Part Number Hot Search : 
100PS 1A12A 1N708A 63A03 IFPA300 1N4892A RG4BC30 01M10
Product Description
Full Text Search
 

To Download AN4080 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  november 2014 docid023035 rev 4 1/35 1 AN4080 application note getting started with stm32f0x1/x2/x8 hardware development introduction this application note is intended for system designers who require a hardware implementation overview of the development board features such as the power supply, the clock management, the reset control, the boot mode settings and the debug management. it shows how to use the stm32f0xxxx product family and describes the minimum hardware resources required to develop your application. within the stm32f0xxxx product family, the stm32f0x8 line offers a different embedded power management to support 1.8 v operation. this document also includes detailed reference design schematics with the description of the main components, interfaces and modes. note: in this document, the notation used for devices is stm32f0xx where xx are the two first digits following f0 standing for entry-level family. pin count and memory size d not impact this hardware description. table 1. applicable products type part number microcontrollers stm32f031c4, stm32f031c6, stm32f031f4, stm32f031f6, stm32f031g4, stm32f031g6, stm32f031k4, stm32f031k6, stm32f038c6, stm32f038f6, stm32f038g6, stm32f038k6, stm32f042c4, stm32f042c6, stm32f042f4, stm32f042f6, stm32f042g4, stm32f042g6, stm32f042k4, stm32f042k6, stm32f042t4, stm32f042t6, stm32f048c6, stm32f048g6, stm32f048t6 stm32f051c4, stm32f051c6, stm32f051c8, stm32f051k4, stm32f051k6, stm32f051k8, stm32f051r4, stm32f051r6, stm32f051r8, stm32f058c8, stm32f058r8, stm32f071v8, stm32f071cb, stm32f071rb, stm32f071vb, stm32f072c8, stm32f072r8, stm32f072v8, stm32f072cb,stm32f072rb, stm32f072vb, stm32f078cb, stm32f078rb, stm32f078vb, stm32f091cb, stm32f091rb, stm32f091vb, stm32f091cc, stm32f091rc, stm32f091vc, stm32f098cc, stm32f098rc, stm32f098vc www.st.com
contents AN4080 2/35 docid023035 rev 4 contents 1 power supplies and reset sources of the stm32f0xx family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1.1 independent analog converter supply . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.1.2 battery backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.1.3 voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.2 reset and power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.2.1 power-on reset (por) / power-down reset (pdr) of the stm32f0x1/x2 devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.2.2 external power-on reset and power-down reset (npor) of the stm32f0x8 devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.2.3 system reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.2.4 programmable voltage detector (pvd) of the stm32f0x1/x2 devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2 clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.1 high speed external clock signal (hse) osc clock . . . . . . . . . . . . . . . . . 16 2.2 lse clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.3 hsi 8 mhz clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.4 lsi clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.5 adc clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.6 hsi 48 mhz clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.6.1 hsi 48 mhz rc oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.6.2 hsi 48 mhz clock recovery system (crs) . . . . . . . . . . . . . . . . . . . . . . 19 2.7 clock security system (css) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3 boot configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4 debug management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.2 swd port (serial wire debug) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.3 pinout and debug port pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.3.1 serial wire debug (swd) pin assignment . . . . . . . . . . . . . . . . . . . . . . . 22 4.3.2 swd pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
docid023035 rev 4 3/35 AN4080 contents 3 4.3.3 internal pull-up and pull-down on swd pins . . . . . . . . . . . . . . . . . . . . . 23 4.3.4 swd port connection with standard swd connector . . . . . . . . . . . . . . 23 5 recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.1 printed circuit board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.2 component position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.3 ground and power supply (v dd , v dda , v ddio2 ) . . . . . . . . . . . . . . . . . . . . 24 5.4 decoupling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.5 other signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.6 unused i/os and features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 6 reference design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.1 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.1.1 clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.1.2 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.1.3 stm32f0x8 power-on reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.1.4 boot mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.1.5 swd interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.1.6 power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 6.1.7 pinouts and pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 6.2 component references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7 hardware migration from stm32f1 to stm32f0 series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 8 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
list of tables AN4080 4/35 docid023035 rev 4 list of tables table 1. applicable products. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. power supplies of the stm32f0xx family. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 table 3. boot modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 table 4. swd port pins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 5. mandatory components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 table 6. optional components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 table 7. stm32f1 series and stm32f03x/5x device pinout differences . . . . . . . . . . . . . . . . . . . . 32 table 8. stm32f1 series and stm32f04x device pinout differences . . . . . . . . . . . . . . . . . . . . . . . 32 table 9. stm32f1 series and stm32f07x device pinout differences . . . . . . . . . . . . . . . . . . . . . . . 32 table 10. stm32f1 series and stm32f09x device pinout differences . . . . . . . . . . . . . . . . . . . . . . . 33 table 11. document revision history. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
docid023035 rev 4 5/35 AN4080 list of figures 5 list of figures figure 1. power supply scheme of stm32f0x1/x2 devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 figure 2. power supply scheme of stm32f0x8 devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 figure 3. schottky diode connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 4. power on reset/power down reset waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 5. simplified diagram of the reset circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12 figure 6. pvd thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 7. hse/ lse clock sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 figure 8. host-to-board connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 figure 9. swd port connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 figure 10. typical layout for v dd /v ss pair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 figure 11. stm32f051r8 microcontroller reference schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 figure 12. stm32f058r8 microcontroller reference schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 figure 13. stm32f072 microcontroller reference schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
power supplies and reset sources of the stm32f0xx family AN4080 6/35 docid023035 rev 4 1 power supplies and reset sources of the stm32f0xx family 1.1 power supply schemes the stm32f0xx family features different products with various supply schemes. it includes an internal regulator in order to have an internal 1.8 v supply for the core and digital logic. on stm32f0x8 line, the voltage regulator is bypassed, therefore the 1.8 v power supply must be provided to the chip by an external regulator. there is a variety of power supply schemes: ? v dd : external power supply for i/os and the 1.8 v domain. provided externally through v dd pins. ? v dda : external analog power supply for adc/dac, reset blocks, hsi, hsi14, hsi48, lsi and pll (minimum voltage to be applied to v dda is 2.4 v when the adc or dac are used). the v dda voltage level must always be greater than or equal to the v dd voltage level and must be provided first. ? v ddio2 : external power supply for some dedicated ios that is provided externally through the vddio2 pin. the v ddio2 voltage level is fully independent from v dd or v dda , but it must not be provided without a valid supply on v dd . refer to the dedicated device datasheet to find the concerned list of i/os. ? v bat : power supply for rtc, lse 32 khz oscillator and backup registers (through power switch) when v dd is not present. table 2. power supplies of the stm32f0xx family product family power supply stm32f0x1 stm32f0x2 stm32f0x8 v dd 2.0 to 3.6 v 1.8 v +/- 8 % v dda v dd to 3.6 v v ddio2 (1) 1. v ddio2 power supply is not available on all parts, refer to the dedicated device datasheet to check if it is available. 1.65 to 3.6 v v bat 1.65 to 3.6 v
docid023035 rev 4 7/35 AN4080 power supplies and reset sources of the stm32f0xx family 34 figure 1. power supply scheme of stm32f0x1/x2 devices 1. refer to the specific device datasheet to know which pins are supplied by v dd or by v ddio2 . 06y9 /hyhovkliwhu ,2 orjlf .huqhoorjlf &38'ljlwdo 0hprulhv %dfnxsflufxlwu\ /6(57& %dfnxsuhjlvwhuv ,1 287 5hjxodwru *3,2v 9 ,1 287 *3,2v 1[q) [?) q) /hyhovkliwhu ,2 orjlf ?) 2swlrqdo 9 '',2  vxsso\ 9 '',2 9 '',2 9 66 1[9 66 9 '' 1[9 '' 9 %$7 9 &25( 3rzhuvzlwfk $'& '$& $qdorj 5&v3//? 9 5() 9 5() 9 ''$ q) ?) 9 ''$ 9 66$ 9 '',2 9 '',2
power supplies and reset sources of the stm32f0xx family AN4080 8/35 docid023035 rev 4 figure 2. power supply scheme of stm32f0x8 devices 1. refer to the specific device datasheet to know which pins are supplied by v dd or by v ddio2 . d^?e??s? 9 '',2 $'& '$& /hyhovkliwhu ,2 orjlf .huqhoorjlf &38'ljlwdo 0hprulhv %dfnxsflufxlwu\ /6(57& %dfnxsuhjlvwhuv $qdorj 5&v3//? ,1 287 9 5() 9 5() *3,2v 9 ,1 287 *3,2v 9 ''$ q) ?) 1[q) [?) q) /hyhovkliwhu ,2 orjlf ?) 2swlrqdo 9 '',2  vxsso\ 9 '',2 9 ''$ 9 66$ 9 66 1[9 66 9 '' 1[9 '' 9 %$7 9 &25( 3rzhuvzlwfk 1325 9 '',2 9 '',2
docid023035 rev 4 9/35 AN4080 power supplies and reset sources of the stm32f0xx family 34 1.1.1 independent analog converter supply to improve conversion accuracy and to extend the supply flexibility, the analog domain has an independent power supply which can be separately filtered and shielded from noise on the pcb. ? the adc and dac voltage supply input is available on a separate vdda pin. ? a separated supply ground connection is provided on pin vssa. the v dda supply can be equal to or higher than v dd . this allows v dd to stay low while still providing the full performance for the analog blocks. when a single supply is used, v dda must be externally connected to v dd . it is recommended to use an external filtering circuit in order to ensure a noise free v dda . when v dda is different from v dd , v dda must be always higher or equal to v dd . to keep safe potential difference between v dda and v dd during power-up/power-down, an external schottky diode may be used between v dd and v dda . refer to the datasheet for the maximum allowed difference. figure 3. schottky diode connection 1.1.2 battery backup to retain the content of the backup registers when v dd is turned off, the v bat pin can be connected to an optional standby voltage supplied by a battery or another source. the v bat pin also powers the rtc unit, allowing the rtc to operate even when the main digital supply (v dd ) is turned off. the switch to the v bat supply is controlled either by the por/pdr circuitry embedded in the reset block on stm32f0x1/x2 devices, or by the npor pin on stm32f0x8 devices. if no external battery is used in the application, it is recommended to connect v bat externally to v dd . 069 6fkrwwn\glrgh 9''$ 9'' 9 '' 9 ''$
power supplies and reset sources of the stm32f0xx family AN4080 10/35 docid023035 rev 4 1.1.3 voltage regulator the voltage regulator, when available on the device, is always enabled after reset. it works under two different modes: ? main (mr) is used in normal operating mode (run). ? low power (lpr) can be used in stop mode where the power demand is reduced. in standby mode the regulator is in power-down mode. in this mode, the regulator output is in high impedance and the kernel circuitry is powered down, inducing zero consumption and the loss of the register and sram contents. however, the following features are available if configured: ? independent watchdog (iwdg): the iwdg is started by writing to its key register or by a hardware option. once started it cannot be stopped except by a reset. ? real-time clock (rtc): configured by the rtcen bit in the rtc domain control register (rcc_bdcr). ? internal low speed oscillator (lsi): configured by the lsion bit in the control/status register (rcc_csr). ? external 32.768 khz oscillator (lse): configured by the lseon bit in the rtc domain control register (rcc_bdcr). caution: in the stm32f0x8 devices the voltage regulator is bypassed, therefore the standby mode is not available.
docid023035 rev 4 11/35 AN4080 power supplies and reset sources of the stm32f0xx family 34 1.2 reset and power supply supervisor 1.2.1 power-on reset (por) / power-down reset (pdr) of the stm32f0x1/x2 devices the device has an integrated power-on reset (por) and power-down reset (pdr) circuits which are always active and ensure proper operation above a threshold of 2 v. the device remains in reset mode when the monitored supply voltage is below a specified threshold, v por/pdr , without the need for an external reset circuit. ? the por monitors only the v dd supply voltage. during the startup phase v dda must arrive first and be greater than or equal to v dd. ? the pdr monitors both the v dd and v dda supply voltages. however, the v dda power supply supervisor can be disabled (by programming a dedicated option bit v dda_monitor ) to reduce the power consumption if the application design ensures that v dda is higher than or equal to v dd . for more details on the power on / power down reset threshold, refer to the electrical characteristics section in the datasheet. figure 4. power on reset/power down reset waveform 1.2.2 external power-on reset and power-down reset (npor) of the stm32f0x8 devices to guarantee a proper power-on and power-down reset to the device, the npor pin must be held low until v dd is valid or before turning off the supply. when v dd is stable, the reset state can be exited by putting the npor pin in high impedance. the npor pin has an internal pull-up connected to vdda. 06y9 5hvhw p9 k\vwhuhvlv 7hpsrul]dwlrq w 5677(032 9 325 9 3'5 9 '' 9 ''$
power supplies and reset sources of the stm32f0xx family AN4080 12/35 docid023035 rev 4 1.2.3 system reset a system reset sets all registers to their reset values, except the reset flags in the clock controller csr register and the registers in the rtc domain. a system reset is generated when one of the following events occurs: 1. a low level on the nrst pin (external reset). 2. system window watchdog event (wwdg reset). 3. independent watchdog event (iwdg reset). 4. a software reset (sw reset). 5. low-power management reset. 6. option byte loader reset. 7. power reset the reset source can be identified by checking the reset flags in the control/status register, rcc_csr. the reset service routine vector is fixed at address 0x0000_0004 in the memory map. the system reset signal provided to the device is output on the nrst pin. the pulse generator guarantees a minimum reset pulse duration of 20 s for each internal reset source. in the case of an external reset, the reset is generated while the nrst pin is asserted low. figure 5. simplified diagram of the reset circuit software reset the sysresetreq bit in cortex-m0 application interrupt and reset control register must be set to force a software reset on the device. refer to the cortex ? -m0 technical reference manual for more details. 069 3xovh jhqhudwru plq?v ::'*uhvhw ,:'*uhvhw 3rzhuuhvhw 6riwzduhuhvhw /rzsrzhupdqdjhphqwuhvhw 2swlrqe\whordghuuhvhw ([lwiurpvwdqge\prgh )lowhu ([whuqdo uhvhw 1567 9 '' 5 38 6\vwhpuhvhw
docid023035 rev 4 13/35 AN4080 power supplies and reset sources of the stm32f0xx family 34 low-power mode security reset to prevent that critical applications mistakenly enter a low-power mode, two low-power mode security resets are available. if enabled in option bytes, the resets are generated in the following conditions: 1. entering standby mode: this type of reset is enabled by resetting nrst_stdby bit in user option bytes. in this case, whenever a standby mode entry sequence is successfully executed, the device is reset instead of entering standby mode. 2. entering stop mode: this type of reset is enabled by resetting nrst_stop bit in user option bytes. in this case, whenever a stop mode entry sequence is successfully executed, the device is reset instead of entering stop mode. caution: in the stm32f0x8 devices, the voltage regulator is bypassed, therefore the standby mode is not available. option byte loader reset the option byte loader reset is generated when obl_launch (bit 13) is set in the flash_cr register. this bit launches the option byte loading by software. power reset a power reset sets all registers to their reset values, except the rtc domain. in the stm32f0x1/x2 devices, the power reset is generated when one of the following events occurs. 1. power-on/power-down reset (por/pdr reset) 2. exiting standby mode for the stm32f0x8 devices, the power-on reset must be provided externally. it is generated while the npor pin is low. for more information concerning npor, see section 1.2.2: external power-on reset and power-down reset (npor) of the stm32f0x8 devices . rtc domain reset the rtc domain reset only affects the rtc, lse, lsi and the backup registers. it is generated when one of the following events occurs. 1. software reset, triggered by setting the bdrst bit in the rtc domain control register (rcc_bdcr). 2. por reset if v bat has been disconnected when v dd was low.
power supplies and reset sources of the stm32f0xx family AN4080 14/35 docid023035 rev 4 1.2.4 programmable voltage detector (pvd) of the stm32f0x1/x2 devices you can use the pvd to monitor the v dd power supply by comparing it to a threshold selected by the pls[2:0] bits in the power control register (pwr_cr). the pvd is enabled by setting the pvde bit. when enabled, the typical current consumption of this feature is 0.15 a. a pvdo flag is available, in the power control/status register (pwr_csr), to indicate if v dd is higher or lower than the pvd threshold. ? this event is internally connected to the exti line16 and can generate an interrupt if enabled through the exti registers. ? the pvd output interrupt can be generated when v dd drops below the pvd threshold and/or when v dd rises above the pvd threshold depending on exti line16 rising/falling edge configuration. as an example the service routine could perform emergency shutdown tasks. figure 6. pvd thresholds caution: in the stm32f0x8 devices the input voltage must be fixed at 1.8 v, therefore the programmable voltage detector is not available. 069 39'rxwsxw 9 '' 9 39' wkuhvkrog p9 k\vwhuhvlv
docid023035 rev 4 15/35 AN4080 clocks 34 2 clocks different clock sources can be used to drive the system clock (sysclk): ? hsi 8 mhz rc oscillator clock (high-speed internal clock signal), ? hse oscillator clock (high-speed external clock signal), ? pll clock, ? hsi 48 mhz rc oscillator (high-speed internal clock signal) available in stm32f04x/7x/9x devices. the devices have other secondary clock sources: ? 40 khz low-speed internal rc (lsi rc) that drives the independent watchdog and, optionally, the rtc used for auto-wakeup from the stop/standby modes. ? 32.768 khz low-speed external crystal (lse crystal) that optionally drives the rtc ? hsi 14mhz rc oscillator (hsi14) dedicated for adc each clock source can be switched on or off independently when it is not used, to optimize the power consumption. refer to the stm32f0x1/stm32f0x2/stm32f0x8 advanced arm-based 32-bit mcus reference manual (rm0091) for a description of the clock tree.
clocks AN4080 16/35 docid023035 rev 4 2.1 high speed external clock signal (hse) osc clock the high speed external clock signal can be generated from two possible clock sources: ? hse external crystal/ceramic resonator ? hse user external clock the resonator and the load capacitors have to be placed as close as possible to the oscillator pins in order to minimize output distortion and startup stabilization time. the loading capacitance values must be adjusted according to the selected resonator. external crystal/ceramic resonator (hse crystal) the 4 to 32 mhz external oscillator has the advantage of producing a very accurate frequency on the main clock. refer to the electrical characteristics section of the datasheet for more details about the associated hardware configuration. the hserdy flag in the clock control register (rcc_cr) indicates if the hse oscillator is stable or not. at startup, the clock is not released until this bit is set by hardware. an interrupt can be generated if enabled in the clock interrupt register (rcc_cir). the hse crystal can be switched on and off using the hseon bit in the clock control register (rcc_cr). figure 7. hse/ lse clock sources clock source hardware configuration external clock crystal/ceramic resonators 069 ([whuqdovrxufh *3,2 26&b,1 26&b287 069 2&6b,1 2&6b28 7 /rdgfdsdflwruv & / & /
docid023035 rev 4 17/35 AN4080 clocks 34 external source (hse bypass) in this mode, an external clock source must be provided. it can have a frequency of up to 32 mhz. you select this mode by setting the hsebyp and hseon bits in the clock control register (rcc_cr) . the external clock signal (square, sinus or triangle) with ~40-60% duty cycle depending on the frequency (refer to the datasheet) has to drive the osc_in pin while the osc_out pin can be used a gpio. see figure 7 .
clocks AN4080 18/35 docid023035 rev 4 2.2 lse clock the lse crystal is a 32.768 khz low speed external crystal or ceramic resonator. it has the advantage of providing a low-power but highly accurate clock source to the real-time clock peripheral (rtc) for clock/calendar or other timing functions. the lse crystal is switched on and off using the lseon bit in rtc domain control register (rcc_bdcr). the crystal oscillator driving strength can be changed at runtime using the lsedrv[1:0] bits in the rtc domain control register (rcc_bdcr) to obtain the best compromise between robustness and short start-up time on one side and low power- consumption on the other. the lserdy flag in the rtc domain control register (rcc_bdcr) indicates whether the lse crystal is stable or not. at startup, the lse crystal output clock signal is not released until this bit is set by hardware. an interrupt can be generated if enabled in the clock interrupt register (rcc_cir). external source (lse bypass) in this mode, an external clock source must be provided. it can have a frequency of up to 1 mhz. you select this mode by setting the lsebyp and lseon bits in the rtc domain control register (rcc_bdcr). the external clock signal (square, sinus or triangle) has to drive the osc32_in pin while the osc32_out pin can be used as gpio. see figure 7 . 2.3 hsi 8 mhz clock the hsi clock signal is generated from an internal 8 mhz rc oscillator and can be used directly as a system clock or divided by 2 to be used as pll input. the hsi rc oscillator has the advantage of providing a clock source at low cost (no external components). it also has a faster startup time than the hse crystal oscillator however, even with calibration, the frequency is less accurate than an external crystal oscillator or ceramic resonator. calibration rc oscillator frequencies can vary from one chip to another due to manufacturing process variations, this is why each device is factory calibrated by st for 1% accuracy at t a =25c. furthermore, it is possible to route the hsi clock to the mco multiplexer. the clock can then be input to timer 14 to allow the user to calibrate the oscillator. 2.4 lsi clock the lsi rc acts as an low-power clock source that can be kept running in stop and standby mode for the independent watchdog (iwdg) and rtc. the clock frequency is around 40 khz (between 30 khz and 60 khz). for more details, refer to the electrical characteristics section of the datasheets.
docid023035 rev 4 19/35 AN4080 clocks 34 2.5 adc clock the adc clock is either the dedicated 14 mhz rc oscillator (hsi14) or pclk divided by 2 or 4. when the adc clock is derived from pclk, it is in an opposite phase with pclk. the 14 mhz rc oscillator can be configured by software either to be turned on/off ("auto-off mode") by the adc interface or to be always enabled. 2.6 hsi 48 mhz clock 2.6.1 hsi 48 mhz rc oscillator the internal hsi 48 mhz rc oscillator is mainly dedicated to provide a high-precision reference clock to the usb by means of a special clock recovery circuitry (see section 2.6.2 ), which could use the usb sof signal or the lse or an external pulse to adjust the frequency. this source can also be used as a system clock source when the system is in run mode; it is disabled as soon as the system enters in stop or standby mode. the crs can be enabled or not depending on the status of the usb and the synchronization source selected. 2.6.2 hsi 48 mhz clock recovery system (crs) the clock recovery system is an advanced digital control interface to the internal fine- granularity trimmable rc oscillator hsi 48. the crs is a powerful tool for evaluating the oscillator output frequency based on comparison with a selectable synchronization signal. it can adjust automatically the oscillator trimming based on the measured frequency error value, while keeping also the possibility of a manual trimming. 2.7 clock security system (css) the clock security system can be activated by software. in this case, the clock detector is enabled after the hse oscillator startup delay, and disabled when this oscillator is stopped. ? if a failure is detected on the hse oscillator clock, the oscillator is automatically disabled. ? a clock failure event is sent to the break inputs of tim1 advanced control timer and tim15, tim16 and tim17 general purpose timers. ? an interrupt is generated to inform the software about the failure (clock security system interrupt cssi), allowing the mcu to perform recovery operations. ? cssi is linked to the cortex ? -m0 nmi (non-maskable interrupt) exception vector. ? if the hse oscillator is used directly or indirectly as the system clock (indirectly means that it is used as the pll input clock, and the pll clock is used as the system clock), a detected failure causes a switch of the system clock to the hsi oscillator and the disabling of the external hse oscillator. if the hse oscillator clock (divided or not) is the clock entry of the pll that is being used as a system clock when the failure occurs, the pll is disabled too. for details refer to stm32f0x1/stm32f0x2/stm32f0x8 advanced arm-based 32-bit mcus reference manual (rm0091) available from stmicroelectronics website www.st.com .
boot configuration AN4080 20/35 docid023035 rev 4 3 boot configuration in the stm32f0xx, three different boot modes can be selected through the boot0 pin and boot configuration bits nboot1, boot_sel and nboot0 in the user option byte, as shown in the following table. the boot mode configuration is latched on the 4th rising edge of sysclk after a reset. it is up to the user to set boot mode configuration related to the required boot mode. the boot mode configuration is also re-sampled when exiting from standby mode. consequently they must be kept in the required boot mode configuration in standby mode. after this startup delay has elapsed, the cpu fetches the top-of-stack value from address 0x00000000, then starts code execution from the boot memory at 0x00000004. depending on the selected boot mode, main flash memory, system memory or sram is accessible as follows: ? boot from main flash memory: the main flash memory is aliased in the boot memory space (0x00000000), but still accessible from its original memory space (0x08000000). in other words, the flash memory contents can be accessed starting from address 0x00000000 or 0x08000000. ? boot from system memory: the system memory is aliased in the boot memory space (0x0000 0000), but still accessible from its original memory space (0x1fff ec00 on stm32f03x and stm32f05x devices, 0x1fff c400 on stm32f04x devices and 0x1fff c800 on stm32f07x devices). ? boot from the embedded sram: the sram is aliased in the boot memory space (0x0000 0000), but it is still accessible from its original memory space (0x2000 0000). empty check on stm32f04x devices only, internal empty check flag is implemented to allow easy programming of the virgin devices by the boot loader. this flag is used when boot0 pin is defining main flash memory as the target boot space. when the flag is set, the device is considered as empty and system memory (boot loader) is selected instead of the main flash as a boot space to allow user to program the flash memory. table 3. boot modes (1) 1. grey options are available on stm32f04x devices only. boot mode configuration mode n boot1 bit boot0 pin boot_sel bit nboot0 bit x 0 1 x main flash memory is selected as boot space (2) 2. for stm32f04x devices, see also empty check description. 1 1 1 x system memory is selected as boot space 0 1 1 x embedded sram is selected as boot space x x 0 1 main flash memory is selected as boot space 1 x 0 0 system memory is selected as boot space 0 x 0 0 embedded sram is selected as boot space
docid023035 rev 4 21/35 AN4080 boot configuration 34 this flag is updated only during option bytes loading: it is set when the content of the address 0x08000 0000 is read as 0xffff ffff, otherwise it is cleared. it means a power on or setting of obl_launch bit in flash_cr register is needed to clear this flag after programming of a virgin device to execute user code after system reset. note: if the device is programmed for a first time but the option bytes are not reloaded, the device will still select system memory as a boot space after a system reset. the boot loader code is able to detect this situation and will change the boot memory mapping to main flash and perform a jump to user code programmed there. embedded boot loader the embedded boot loader is located in the system memory, programmed by st during production. it is used to reprogram the flash memory using one of the following serial interfaces: ? usart on pins pa14/pa15 or pa9/pa10, ? i2c on pins pb6/pb7 (stm32f04x and stm32f07x devices only), ? usb dfu interface (stm32f04x, stm32f072 and stm32f078 devices only). for further details, please refer to an2606.
debug management AN4080 22/35 docid023035 rev 4 4 debug management 4.1 introduction the host/target interface is the hardware equipment that connects the host to the application board. this interface is made of three components: a hardware debug tool, an swd connector and a cable connecting the host to the debug tool. figure 8 shows the connection of the host to the evaluation board (stm320518_eval). the stm320518_eval evaluation board embeds the debug tools (st-link). consequently, it can be directly connected to the pc through a usb cable. figure 8. host-to-board connection 4.2 swd port (serial wire debug) the stm32f0xx core integrates the serial wire debug port (sw-dp). it is an arm ? standard coresight? debug port with a 2-pin (clock + data) interface to the debug access port. 4.3 pinout and debug port pins the stm32f0xx mcu is offered in various packages with varying numbers of available pins. 4.3.1 serial wire debug (swd) pin assignment the same swd pin assignment is available on all stm32f0xx packages. (ydoxdwlrqerdug +rvw3& 3rzhuvxsso\ 6:'frqqhfwru 'hexjwrro dlf table 4. swd port pins swd pin name swd port pin assignment type debug assignment swdio i/o serial wire data input/output pa13 swclk i serial wire clock pa14
docid023035 rev 4 23/35 AN4080 debug management 34 4.3.2 swd pin assignment after reset (sysresetn or poresetn), the pins used for the swd are assigned as dedicated pins which are immediately usable by the debugger host. however, the mcu offers the possibility to disable the swd, therefore releasing the associated pins for general-purpose i/o (gpio) usage. for more details on how to disable swd port, refer to the rm0091 section on i/o pin alternate function multiplexer and mapping. 4.3.3 internal pull-up and pull-down on swd pins once the swd i/o is released by the user software, the gpio controller takes control of these pins. the reset states of the gpio control registers put the i/os in the equivalent states: ? swdio: alternate function pull-up ? swclk: alternate function pull-down having embedded pull-up and pull-down resistors removes the need to add external resistors. 4.3.4 swd port connection with standard swd connector figure 9 shows the connection between the stm32f0xx and a standard swd connector. figure 9. swd port connection caution: in stm32f07x/04x devices, the swclk and swdio pins are supplied by the vddio2 domain. therefore, you must provide vddio2 supply instead of vdd to the swd connector in order to ensure correct behavior of the debugger tool. e ez^d ^t><lwe ^t/klw? ^dd??&???? ^t}vv?}? s           069
recommendations AN4080 24/35 docid023035 rev 4 5 recommendations 5.1 printed circuit board for technical reasons, it is best to use a multilayer printed circuit board (pcb) with a separate layer dedicated to ground (v ss ) and another dedicated to the v dd supply. this provides good decoupling and a good shielding effect. for many applications, economical reasons prohibit the use of this type of board. in this case, the major requirement is to ensure a good structure for ground and for the power supply. 5.2 component position a preliminary layout of the pcb must make separate circuits: ? high-current circuits ? low-voltage circuits ? digital component circuits ? circuits separated according to their emi contribution. this will reduce cross-coupling on the pcb that introduces noise. 5.3 ground and power supply (v dd , v dda , v ddio2 ) every block (noisy, low-level sensitive, digital, etc.) should be grounded individually and all ground returns should be to a single point. loops must be avoided or have a minimum area. in order to improve analog performance, you must use separate supply sources for v dd / v ddio2 and v dda , and place the decoupling capacitors as close as possible to the device. the power supplies should be implemented close to the ground line to minimize the area of the supplies loop. this is due to the fact that the supply loop acts as an antenna, and is therefore the main transmitter and receiver of emi. all component-free pcb areas must be filled with additional grounding to create a kind of shielding (especially when using single- layer pcbs). 5.4 decoupling all power supply and ground pins must be properly connected to the power supplies. these connections, including pads, tracks and vias should have as low an impedance as possible. this is typically achieved with thick track widths and, preferably, the use of dedicated power supply planes in multilayer pcbs. in addition, each power supply pair should be decoupled with 100 nf filtering ceramic capacitor and a chemical capacitor of about 4.7 f connected between the supply pins of the stm32f0xx device. these capacitors need to be placed as close as possible to, or below, the appropriate pins on the underside of the pcb. typical values are 10 nf to 100 nf, but exact values depend on the application needs. figure 10 shows the typical layout of such a v dd /v ss pair.
docid023035 rev 4 25/35 AN4080 recommendations 34 figure 10. typical layout for v dd /v ss pair 5.5 other signals when designing an application, the emc performance can be improved by closely studying: ? signals for which a temporary disturbance affects the running process permanently (such as interrupts and handshaking strobe signals, but not led commands). for these signals, a surrounding ground trace, shorter lengths and the absence of noisy and sensitive traces nearby (crosstalk effect) improve emc performance. ? digital signals: the best possible electrical margin must be reached for the two logical states and slow schmitt triggers are recommended to eliminate parasitic states. ? noisy signals (clock, etc.) ? sensitive signals (high impedance, etc.) 5.6 unused i/os and features all microcontrollers are designed for a variety of applications and often a particular application does not use 100% of the mcu resources. to increase emc performance and avoid extra power consumption, unused clocks, counters or i/os, should not be left free. i/os should be connected to a fixed logic level of 0 or 1 by an external or internal pull-up or pull-down on the unused i/o pin. the other option is to configure gpio as output mode using software. unused features should be frozen or disabled, which is their default value. 069 9ldwr9 66 9ldwr9 '' &ds 9 '' 9 66
reference design AN4080 26/35 docid023035 rev 4 6 reference design 6.1 description the reference design shown in figure 11 , introduces the stm32f051, a highly integrated microcontroller running at 48 mhz, that combines the cortex ? -m0 32-bit risc cpu core with 64 kbytes of embedded flash memory and 8 kbytes of sram . for the stm32f058 reference design, refer to figure 12 . these reference design can be tailored to any other stm32f058 device with a different package, using the pin correspondence given in the corresponding datasheet. for the stm32f072 reference design, refer to figure 13 . these reference design can be tailored to any other stm32f072 device with a different package, using the pin correspondence given in the corresponding datasheet. 6.1.1 clock two clock sources are used for the microcontroller: ? hse: x1? 8 mhz crystal for the stm32f0xx microcontroller ? lse: x2? 32.768 khz crystal for the embedded rtc refer to section 2: clocks on page 15 . 6.1.2 reset the reset signal in figure 11 or figure 12 is active low. the reset sources include: ? reset button (b1) ? debugging tools via the connector cn1 refer to section 1.2.3: system reset on page 12 . 6.1.3 stm32f0x8 power-on reset on the stm32f0x8 line, the power-on reset signal is active low and must be provided externally by the application on npor pin. it is maintained to v dda through an integrated pull-up resistor. refer to section 1.2.2: external power-on reset and power-down reset (npor) of the stm32f0x8 devices on page 11 . 6.1.4 boot mode the boot option is configured by setting boot0 through switch sw1 and option bit nboot1. refer to section 3: boot configuration on page 20 . 6.1.5 swd interface the reference design shows the connection between the stm32f0xx and a standard swd connector. refer to section 4: debug management on page 22 . note: it is recommended to connect the reset pin in order to be able to reset the application from the tool.
docid023035 rev 4 27/35 AN4080 reference design 34 6.1.6 power supply refer to section 1.1: power supply schemes . 6.1.7 pinouts and pin description please refer to the stm32f0xx datasheets available on www.st.com for the pinout information and pin description of each device.
reference design AN4080 28/35 docid023035 rev 4 6.2 component references note: depending on the microcontroller used, refer to the corresponding reference schematics. table 5. mandatory components component reference value quantity comments microcontroller u1, u2 or u3 stm32f051r8, stm32f058r8 or stm32f072r8 1 64-pin package capacitor c1/c2 100 nf 2 ceramic capacitors (decoupling capacitors) capacitor c3 10 nf 1 ceramic capacitor (decoupling capacitor) capacitor c5 1 f 1 used for vdda capacitor c6 4.7 f 1 used for vdd table 6. optional components component reference value quantity comments resistor r1 390 1 used for hse: the value depends on the crystal characteristics. this value is given only as a typical example. resistor r2 10 k 1 used for boot0 pin capacitor c4 100 nf 1 ceramic capacitor for reset button capacitor c13 4.7 f 1 used for vddio2 capacitor c12 100 f 1 ceramic capacitor (decoupling capacitor) capacitor c7/c8 10 pf 2 used for lse: the value depends on the crystal characteristics. capacitor c9/c10 20 pf 2 used for hse: the value depends on the crystal characteristics. quartz x1 8 mhz 1 used for hse quartz x2 32 khz 1 used for lse battery bt1 3v 1 if no external battery is used in the application, it is recommended to connect v bat externally to v dd switch sw1 - 1 used to select the correct boot mode. push-button b1 - 1 used as reset button swd connector cn1 ftsh-105-01-l-dv 1 used for program/debug of the mcu
docid023035 rev 4 29/35 AN4080 reference design 34 figure 11. stm32f051r8 microcontroller reference schematic note: if no external battery is used in the application, it is recommended to connect v bat externally to v dd .    ' ' & & % % 9%$7  3&7$0 3(5:.83  3&26&b, 1  3&   2 6&  b287  3)  2 6& b, 1  3)    26&b 2 8 7  1 5 67  3&  3&   3&   3&   966$   9 5 ( )   9 ' '$9 5 ()  3$   7 $ 0 3 (5   :.83   3$   3$    3$  3)  3)  3$  3$  3$  3$  3&  3&  3%  3%  3%  3%  3%  96 6  9''  3%    3%   3%    3%   3&   3&   3&  3&  3$   3$   3$   3$    3$   3$    3)  3)  3$  3$  3&  3&  3&  3'  3%  3%  3%  3%  3%  %227  3%  3%  96 6  9''  8 670 ) 57 & q) & q) 9'' & x) & q) 9'' %7    -3  9'' & s) & s) & s) & s) ; 0+] 5  9''$ 9'' 5 . 9''    6: 9''$ 6:'  frqqhfwru           &1 )76+ /'9 9'' %rrw prgh     % 5( 6(7 & q) %dwwhu\ /6( +6( 0&8 & x) ; .+]
reference design AN4080 30/35 docid023035 rev 4 figure 12. stm32f058r8 microcontroller reference schematic note: if no external battery is used in the application, it is recommended to connect v bat externally to v dd .    ' ' & & % % 9%$7  3&7$0 3(5:.83  3&26&b, 1  3&   2 6&b28 7  3)  2 6& b, 1  3)    26&b 2 8 7  1 5 67  3&  3&   3&   3&   966$   9 5 ( )   9 ' '$9 5 ()  3$   7 $ 03(5   :.83    3$   3$    3$  3)  3)  3$  3$  3$  3$  3&  3&  3%  3%  1325  3%  3%  96 6  9''  3%    3%   3%    3%   3&   3&   3&  3&  3$   3$   3$   3$    3$   3$    3)  3)  3$  3$  3&  3&  3&  3'  3%  3%  3%  3%  3%  %227  3%  3%  96 6  9''  8 670 ) 57 & q) & q) 9'' & x) & q) 9'' %7    -3  9'' & s) & s) & s) & s) ; 0+] 5  9''$ 9'' 5 . 9''    6: 9''$ 6:'  frqqhfwru           &1 )76+ /'9 9'' %rrw prgh     % 5( 6(7 & q) %dwwhu\ /6( +6( 0&8 & x) ; .+] 1325  vljqdo
docid023035 rev 4 31/35 AN4080 reference design 34 figure 13. stm32f072 microcontroller reference schematics    ' ' & & % % 9%$7  3&7035:.83  3&26&b, 1  3&   2 6&b287  3)  2 6& b, 1  3)    26&b 2 8 7  1 5 67  3&  3&   3&   3&   966$   9 5 ( )   9 ' '$9 5 ()  3$   7 0 35  :. 8 3   3$   3$    3$  96 6  9''  3$  3$  3$  3$  3&  3&   :.83  3%  3%  1325  3%  3%  96 6  9''  3%    3%   3%   3%:. 83  3&   3&   3&   3&   3$   3$   3 $    3$    3$   3$    966  9'', 2   3$  3$  3&  3&  3&  3'  3%  3%  3%  3%  3%  %227  3%  3%  96 6  9''  8 670 ) 57 & q) & q) 9'' & q) 9'' %7    -3  9'' & s) & s) & s) & s) ; 0+] 5  9''$ 9'' 5 . 9''    6: 9''$ 6:'  frqqhfwru           &1 )76+ /'9 9'', 2 %rrw prgh     % 5( 6(7 & q) %dwwhu\ /6( +6( 0&8 & ?) ; .+] 9'', 2 & q) 9'', 2 9'' & ?) & q) & ?)
hardware migration from stm32f1 to stm32f0 series AN4080 32/35 docid023035 rev 4 7 hardware migration from stm32f1 to stm32f0 series the entry-level stm32f0xx and general-purpose stm32f1xxx families are pin-to-pin compatible. all peripherals shares the same pins in the two families, but there are some minor differences between packages. the transition from the stm32f1 series to the stm32f0 series is simple as only a few pins are impacted. the impacted pins are shown in bold in the following tables. table 7. stm32f1 series and stm32f03x/5x device pinout differences lqfp64 lqfp48 stm32 f1 series stm32f03x/5x devices pinout pinout stm32f031/51 pinout stm32f038/58 55 pd0 - osc_in pf0 - osc_in pf0 - osc_in 66 pd1 - osc_out pf1 - osc_out pf1 - osc_out 18 - vss_4 pf4 pf4 19 - vdd_4 pf5 pf5 28 20 boot1 - pb2 pb2 npor 47 35 vss_2 pf6 pf6 48 36 vdd_2 pf7 pf7 table 8. stm32f1 series and stm32f04x device pinout differences lqfp48 stm32f1 series stm32f04x devices pinout pinout stm32f042 pinout stm32f048 5 pd0 - osc_in pf0 - osc_in pf0 - osc_in 6 pd1 - osc_out pf1 - osc_out pf1 - osc_out 20 boot1 - pb2 pb2 npor 35 vss_2 pf6 pf6 36 vdd_2 vddio2 vddio2 44 boot0 boot0 - pf11 boot0 - pf11 table 9. stm32f1 series and stm32f07x device pinout differences lqfp100 stm32 f1 series stm32f07x devices pinout pinout stm32f071/72 pinout stm32f078 10 vss_5 pf9 pf9 11 vdd_5 pf10 pf10 12 osc_in pf0 - osc_in pf0 - osc_in
docid023035 rev 4 33/35 AN4080 hardware migration from stm32f1 to stm32f0 series 34 13 osc_out pf1 - osc_out pf1 - osc_out 19 vssa pf2 pf2 20 vref - vssa vssa 21 vref + vdda vdda 22 vdda pf3 pf3 37 boot1 - pb2 pb2 npor 73 nc pf6 pf6 75 vdd_2 vddio2 vddio2 table 10. stm32f1 series and stm32f09x device pinout differences lqfp100 stm32 f1 series stm32f09x devices pinout pinout stm32f091 pinout stm32f098 10 vss_5 pf9 pf9 11 vdd_5 pf10 pf10 12 osc_in pf0 - osc_in pf0 - osc_in 13 osc_out pf1 - osc_out pf1 - osc_out 19 vssa pf2 pf2 20 vref - vssa vssa 21 vref + vdda vdda 22 vdda pf3 pf3 37 boot1 - pb2 pb2 npor 73 nc pf6 pf6 75 vdd_2 vddio2 vddio2 94 boot0 boot0- pf11 boot0- pf11 table 9. stm32f1 series and stm32f07x device pinout differences (continued) lqfp100 stm32 f1 series stm32f07x devices pinout pinout stm32f071/72 pinout stm32f078
revision history AN4080 34/35 docid023035 rev 4 8 revision history table 11. document revision history date revision changes 11-jul-2012 1 initial release. 11-feb-2013 2 added chapter 3: power supplies of the stm32f06x family . modified chapter 6: reference design . modified table 7: stm32f1 series and stm32f03x/5x device pinout differences . 02-oct-2014 3 document reformatted. renamed part numbers. updated: ? section 1: power supplies and reset sources of the stm32f0xx family : grouped together information for stm32f05x and stm32f06x devices. ? section 2: clocks ? section 4.3.4: swd port connection with standard swd connector ? section 5.3: ground and power supply (vdd, vdda, vddio2) ? section 3: boot configuration ? table 1: applicable products and table 7: stm32f1 series and stm32f03x/5x device pinout differences ? figure 1: power supply scheme of stm32f0x1/x2 devices , figure 5: simplified diagram of the reset circuit and figure 9: swd port connection ? section 7: hardware migration from stm32f1 to stm32f0 series ? figure 11: stm32f051r8 microcontroller reference schematic added: ? figure 2: power supply scheme of stm32f0x8 devices ? section 2.6: hsi 48 mhz clock ? table 9: stm32f1 series and stm32f07x device pinout differences ? table 8: stm32f1 series and stm32f04x device pinout differences ? figure 12: stm32f058r8 microcontroller reference schematic ? figure 13: stm32f072 microcontroller reference schematics ? table 10: stm32f1 series and stm32f09x device pinout differences 07-nov-2014 4 improved the rendering of figure 7: hse/ lse clock sources .
docid023035 rev 4 35/35 AN4080 35 important notice ? please read carefully stmicroelectronics nv and its subsidiaries (?st?) reserve the right to make changes, corrections, enhancements, modifications, and improvements to st products and/or to this document at any time without notice. purchasers should obtain the latest relevant in formation on st products before placing orders. st products are sold pursuant to st?s terms and conditions of sale in place at the time of o rder acknowledgement. purchasers are solely responsible for the choice, selection, and use of st products and st assumes no liability for application assistance or the design of purchasers? products. no license, express or implied, to any intellectual property right is granted by st herein. resale of st products with provisions different from the information set forth herein shall void any warranty granted by st for such product. st and the st logo are trademarks of st. all other product or service names are the property of their respective owners. information in this document supersedes and replaces information previously supplied in any prior versions of this document. ? 2014 stmicroelectronics ? all rights reserved


▲Up To Search▲   

 
Price & Availability of AN4080

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X